//
//  ChangeReceiptTableFootterView.m
//  YTwallet
//
//  Created by ZhangLin on 2019/3/13.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "ChangeReceiptTableFootterView.h"
#import <Masonry.h>
@implementation ChangeReceiptTableFootterView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupViews];
    }
    return self;
}

-(void)setupViews{
    
    self.tipsLab = [[UILabel alloc] init];
    self.tipsLab.text = @"请确认以上后点击确认修改";
    self.tipsLab.font = [UIFont systemFontOfSize:13];
    self.tipsLab.textColor = [UIColor colorWithRed:153 / 255.0 green:153 / 255.0 blue:153 / 255.0 alpha:1];
    [self addSubview:self.tipsLab];
    [self.tipsLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.mas_equalTo(20);
    }];
    
    
    self.confirmBtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
    [self.confirmBtn setTitle:@"确认修改" forState:(UIControlStateNormal)];
    self.confirmBtn.layer.cornerRadius = 22;
    [self.confirmBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    self.confirmBtn.titleLabel.font = [UIFont systemFontOfSize:16];
    self.confirmBtn.backgroundColor = [UIColor colorWithRed:91 / 255.0 green:113 / 255.0 blue:255 / 255.0 alpha:1];
    [self addSubview:self.confirmBtn];
    [self.confirmBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(25);
        make.right.mas_equalTo(-25);
        make.top.equalTo(self.tipsLab.mas_bottom).offset(20);
        make.height.mas_equalTo(44);
    }];
}

@end
